import {request,RequestConfig,HttpRequestMethod,LengyuHttpResponse,PageRequestParam,download,upload}  from '../../utils/request'


export interface Tag{
  id?:string,
  name?:string,
  children?:Array<Tag>
}

// 将微信用户信息保存到数据库
export function getTagHistoryDataForEchartCompare(tagIds:any,time:number,property:string): Promise<LengyuHttpResponse> {
  console.log("请求参数")
  console.log(tagIds)
  console.log(time)
  console.log(property)
  let param={
    "tagIds":tagIds,
    "property":property,
    "timeType":"month",
    "startTime":time
  }
  let requestConfig:RequestConfig={
    url:'/tag/getTagHistoryDataForEchartCompare',
    method:HttpRequestMethod.POST,
    data:param,
    token:true,
  }
  return request(requestConfig);
}


// 将微信用户信息保存到数据库
export function getTagHistoryDataForEchart(tagIds:any,time:number,property:string): Promise<LengyuHttpResponse> {
  console.log("请求参数")
  console.log(tagIds)
  console.log(time)
  console.log(property)
  let param={
    "tagIds":tagIds,
    "property":property,
    "timeType":"month",
    "startTime":time
  }
  let requestConfig:RequestConfig={
    url:'/tag/getTagHistoryDataForEchart',
    method:HttpRequestMethod.POST,
    data:param,
    token:true,
  }
  return request(requestConfig);
}
